package com.company.sendemo.basics.zzInterview.select;

public class Two extends Thread {
    private int x = 2;

    public static void main(String[] args) throws Exception {
        new Two().makeItSo();
    }

    public Two() {
        x = 4;
        start();  //调用 run 方法 x = 8
    }

    public void makeItSo() throws Exception {
        join();   //TODO
        x = x - 1;
        System.out.println(x);
    }

    public void run() {
        x *= 2;
    }
}
